package com.whfc.wxmp.api.emp.service.impl;


import com.whfc.emp.dto.AppEmpBaiDuFaceAttendDTO;
import com.whfc.emp.service.AppEmpInputDataService;
import com.whfc.emp.service.AppEmpService;
import com.whfc.fuum.entity.WxUser;
import com.whfc.wxmp.api.emp.service.WxEmpFaceAttenService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxEmpFaceAttenServiceImpl implements WxEmpFaceAttenService {

    @DubboReference(interfaceClass = AppEmpInputDataService.class, version = "1.0.0")
    private AppEmpInputDataService appEmpInputDataService;

    @DubboReference(interfaceClass = AppEmpService.class, version = "1.0.0")
    private AppEmpService appEmpService;

    @Override
    public void add(WxUser user, AppEmpBaiDuFaceAttendDTO request) {
        appEmpInputDataService.addWithBaiDuFace(user,request);
    }

    @Override
    public List<String> ckeckGps(Double lng, Double lat, Integer deptId) {
        return appEmpService.checkGps(lng,lat,deptId);
    }
}
